
 
 F u n c t i o n :   t o g g l e A t t r i b u t e ( d o m E l e m e n t O r N o d e A r r a y O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e O r K e y V a l u e M a p ,   b o o l V a l u e ) 
 
 
 
 S h o r t h a n d :   t o g g l e A t t r ( d o m E l e m e n t O r N o d e A r r a y O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e O r K e y V a l u e M a p ,   b o o l V a l u e ) 
 
 
 
 D e s c r i p t i o n :   T o g g l e s   t h e   b o o l e a n   v a l u e   o f   a   s p e c i f i e d   a t t r i b u t e   f o r   a   D O M   e l e m e n t ,   m a r k u p   s t r i n g ,   o r   C S S   s e l e c t o r   r e f e r e n c e d   e l e m e n t . 
 
 
 
 R e t u r n s :   d o m E l e m e n t   o r   m a t c h i n g   n o d e   a r r a y ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   T o g g l e   a n   a t t r i b u t e   o n   a   D O M   e l e m e n t 
 
 $ A . t o g g l e A t t r i b u t e ( d o m E l e m e n t ,   " h i d d e n " ) ; 
 
 
 
 / /   T o g g l e   m u l t i p l e   a t t r i b u t e s   o n   a n   a r r a y   o f   D O M   e l e m e n t s 
 
 $ A . t o g g l e A t t r i b u t e ( [ d o m E l e m e n t 1 ,   d o m E l e m e n t 2 ] ,   " d i s a b l e d " ,   t r u e ) ; 
 
 
 
 / /   T o g g l e   m u l t i p l e   a t t r i b u t e s   o n   m u l t i p l e   D O M   e l e m e n t s   r e f e r e n c e d   b y   a   C S S   s e l e c t o r 
 
 $ A . t o g g l e A t t r i b u t e ( ' f o r m   i n p u t [ t y p e = " t e x t " ] ' ,   " r e q u i r e d " ,   f a l s e ) ; 
 
 